package com.tinem.platform.module.starter.jpa.repository.pay;

import com.tinem.platform.module.starter.jpa.entity.pay.OrderPay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className OrderPayRepository
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-01 13:41:09
 */
@Repository
public interface OrderPayRepository extends JpaRepository<OrderPay, String> {
    List<OrderPay> findByOrderId(String orderId);
    List<OrderPay> findByOrderIdAndPayChannelOrderIdOrderByCreatedTimeDesc(String orderId,String payChannelOrderId);

    List<OrderPay> findByOrderIdAndPayChannelOrderByCreatedTimeDesc(String orderId,String payChannelOrderId);


}
